package com.wzh.codegen.biz.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.wzh.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 代码生成表配置实体类，存储表的生成配置信息
 * </p>
 *
 * @author 山归岿
 * @create 2025-06-15-19:42
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("codegen_table_config")
@Schema(description = "代码生成表配置")
public class CodegenTableConfig extends BaseEntity<Long> {

    @Schema(description = "数据源ID")
    private Long datasourceId;

    @Schema(description = "表名")
    private String tableName;

    @Schema(description = "表注释")
    private String tableComment;

    @Schema(description = "实体类名")
    private String entityName;

    @Schema(description = "包名")
    private String packageName;

    @Schema(description = "生成路径")
    private String generatePath;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "表字段配置JSON")
    private String columnsConfig;

    @Schema(description = "生成选项JSON")
    private String generateOptions;

    @Schema(description = "状态：0-草稿，1-已保存")
    private Integer status;

    @Schema(description = "备注")
    private String remark;
}